﻿@model IEnumerable<Course>

@{
    ViewBag.Title = "Klubber";
    var actionName = "StartsWith";
}

<div class="row">
    <div class="page-header">
        <h1><span class="glyphicon glyphicon-globe"></span> @ViewBag.Title</h1>
    </div>
</div>
<div class="row">
    <div class="col-md-12">
        <p>
            @Html.ActionLink("Opret ny", "Create")
        </p>
        <table class="table table-hover">
            <thead>
                <tr>
                    <th>navn</th>
                    <th>adresse</th>
                    <th>postnr.</th>
                    <th>by</th>
                    <th>land</th>
                </tr>
            </thead>

            <tbody>
                @foreach (var item in Model)
                {
                    <tr>
                        <td>@Html.ActionLink(@item.Name, "Details", new { id = @item.Id })</td>
                        <td>@item.Address</td>
                        <td>@item.ZipCode</td>
                        <td>@item.City</td>
                        <td>@item.CountryCodeISO3166Alpha2</td>
                    </tr>
                }
            </tbody>
        </table>
    </div>
</div>